import { developmentUrl } from "../config/env";
import request from "../config/axios";

//表格数据 /message/sender/list?page=1&limit=20
export const messageSenderList = (data) => request({
    url: `${developmentUrl}/message/sender/list?page=${data.page}&limit=${data.limit}`,
    method: "GEt"
})
//添加 /message/sender?name=qwe&className=qwe&id=
export const messagesender = (data) => request({
    url: `${developmentUrl}/message/sender?name=${data.name}&className=${data.className}&id=${data.id}`,
    method: "POST"
})
//删除 /message/sender?id=9
export const messagesenderDelete = (data) => request({
    url: `${developmentUrl}/message/sender?id=${data.id}`,
    method: "DELETE"
})
